package csc.fresher.app;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/*import csc.fresher.dao.impl.SavingAccountTransactionDaoImpl;
import csc.fresher.entity.SavingTransaction;*/
import csc.fresher.entity.SavingTransactionType;
import csc.fresher.entity.Transaction;

@Component
@Scope("request")
public class MainService {
	
	/*@Autowired
	SavingAccountDao savingAccountDao;
	@Autowired
	CurrencyDao currencyDAO;*/
	/*@Autowired
	SavingAccountTransactionDaoImpl savingAccountTransactionDaoImpl;
*/

	private String name;
	
	public String getName() {
		test();
		return "abxc";
	}

	public void setName(String name) {
		this.name = name;
	}

	public void test(){
		//SavingAccount savingAccount = new SavingAccount(12L, a, 12000, true, new Date(System.currentTimeMillis()), AccountState.NEW, 123456789000L);

		//Currency currency =  (Currency) currencyDAO.getCurrencyByID(1);
		//System.out.println(currency.getCurrentcy());

		/*SavingAccount savingAccount = (SavingAccount) savingAccountDao.getCustomerAccountByCardNumberID(123456789);
		System.out.println(savingAccount.getAccountNumber());
		/*PeriodType periodType = new PeriodType("1 week", 1, "week");
		
		periodTypeDao.insert(periodType);*/
		/*Transaction transaction = new SavingTransaction(10000,  20000, 1, 1, SavingTransactionType.WITHDRAW_INTEREST, 323456789000L);
		
		List<Transaction> transactions =  savingAccountTransactionDaoImpl.searchTransactionByAccountID(323456789000L);
		for (Transaction transaction2 : transactions) {
			System.out.println(transaction2.getTransactionID());
		}
*/
	}
	public void abc(){
		System.out.println("abc");
	}
}
